package com.TestDemo.Test2;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/19/16:29
 * @Description:
 * @Target:
 */
public class ArrayListRemoveTest {
    public static void main(String[] args) {

        ArrayList<Object> objects = new ArrayList<>();
        objects.add(5);
        objects.add(1);
        objects.add("2");
        objects.add(0);
        objects.forEach(System.out::println);
        System.out.println("------------------------");

        objects.remove("2");

        objects.forEach(System.out::println);



    }
}
